/* ================================= 商品回收站专属样式 ================================= */
.pageWrapper {
  background-color: #fff;
  padding: 16px;
}

.pageTitle {
  margin-bottom: 16px !important;
  margin-top: 0 !important;
  color: #333;
  font-weight: normal !important;
}

/* 回收站搜索容器专属样式 */
.recycleSearchContainer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.recycleSearchLeft {
  width: 80%;
  display: flex;
  flex-direction: column;
}

.recycleSearchRight {
  width: 8%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  border-left: 2px solid #a4a6a9;
}

/* 回收站按钮样式 */
.recycleDeleteButton {
  border-radius: 3px;
  font-size: 13px;
  padding: 6px 10px;
}

.recycleSearchButton {
  width: 80px;
  background: #165DFF !important;
  border-color: #165DFF !important;
  margin-bottom: 8px;
}

.recycleResetButton {
  width: 80px;
  background: #fff !important;
  color: #333 !important;
}

/* 其他原有样式保持不变... */
.refreshing {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* tabs样式 */
.tabsContainer :global(.ant-tabs-nav),
.tabsContainer :global(.ant-tabs-tab),
.tabsContainer :global(.ant-tabs-tab:hover),
.tabsContainer :global(.ant-tabs-tab-active) {
  background: transparent !important;
  border: none !important;
}

.actionBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 5px;
  margin-bottom: 15px;
}

/* 自定义表格样式 */
.customTable {
  border-spacing: 0 10px;
  border-collapse: separate;
}

/* 表体样式 */
.customTable :global(.ant-table-tbody > tr > td) {
  padding: 10px;
  font-size: 12px;
  border-bottom: 1px solid #f0f0f0;
}

/* 表体行样式 */
.customTable :global(.ant-table-tbody > tr) {
  background-color: #fff;
}

/* 表头样式 */
.customTable :global(.ant-table-thead > tr > th) {
  padding: 5px;
  background-color: #fafafa;
}

/* ================================= 全局基础样式 ================================= */
/* 全局容器样式（包裹整个页面） */
.pageContainer {
    background: #f5f7fa;
    padding: 20px;
    min-height: 100vh;
}

/* 卡片容器样式（表单外层容器） */
.cardContainer {
    background: #fff;
    border-radius: 4px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none !important;
}

/* 表单容器样式（表单内部padding） */
.formContainer {
    padding: 20px;
}

/* ================================= 顶部导航栏样式 ================================= */
.headerBar {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.backButton {
    padding: 0 !important;
    color: #1890ff !important;
    margin-right: 12px !important;
}

.backIcon {
    margin-right: 4px !important;
}

.pageTitle {
    font-size: 16px;
    font-weight: 500;
}

/* ================================= Tabs 组件样式 ================================= */
.tabsContainer :global(.ant-tabs-tab.ant-tabs-tab-active) {
    background: transparent !important;
}

.tabsContainer :global(.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn) {
    font-size: 14px;
}

.tabsContainer :global(.ant-tabs-ink-bar) {
    background-color: #165DFF !important;
    height: 2px !important;
}

.tabsContainer :global(.ant-tabs-tab:hover) {
    background: transparent !important;
}

.tabsContainer :global(.ant-tabs-tab:not(.ant-tabs-tab-active) .ant-tabs-tab-btn) {
    font-size: 14px !important;
}

/* ================================= 按钮相关样式 ================================= */
/* 底部按钮组容器 */
.footerButtonContainer {
    margin-top: auto;
    padding: 20px 0;
    justify-content: center;
}

/* 步骤切换按钮组 */
.buttonGroup {
    margin-top: 20px;
    gap: 8px;
}

/* 规格操作按钮（删除/重置） */
.deleteButton {
    font-size: 12px;
    padding: 5px 8px;
    height: auto;
    border-radius: 4px;
    white-space: nowrap;
}

/* ================================= 表单基础样式 ================================= */
/* 表单输入框样式（商品名称、分类等输入框） */
.productNameInput {
    width: 360px !important;
}

/* 视频上传容器样式 */
.videoUploadContainer {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 图片上传区域专属样式 - 抵消全局表单间距影响 */
.imageUploadRow :global(.ant-form-item) {
    margin-bottom: 0 !important;
}

/* 全局表单项间距（统一控制） */
:global(.ant-form-item) {
    margin-bottom: 15px !important;
}

/* ================================= 布局辅助样式 ================================= */
.formRow {
    display: flex;
    margin-bottom: 30px;
}

.formColumn {
    display: flex;
    margin-bottom: 15px;
}

.leftLabelColumn {
    width: 80px;
    text-align: right;
    margin-right: 12px;
    line-height: 32px;
    font-size: 14px;
    color: #333;
}

.requiredStar {
    color: #ff4d4f;
    margin-right: 4px;
}

.contentColumn {
    flex: 1;
}

/* ================================= 规格库存专属样式 ================================= */
/* 规格类型单选组布局 */
.specTypeLayout {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 规格名称输入区域布局 */
.specNameInputLayout {
    display: flex;
    gap: 12px;
}

/* 规格名称网格布局 */
.specNameGrid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* 规格批量设置表格 */
.batchTable {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e8e8e8;
    table-layout: fixed;
}

.tableHeader {
    background: #f5f5f5;
    border-bottom: 2px solid #d9d9d9;
}

.tableHeaderCell {
    padding: 8px;
    border-right: 1px solid #e8e8e8;
    font-weight: 600;
    color: #333;
    text-align: center;
    font-size: 14px;
}

.tableHeaderCell:last-child {
    border-right: none;
}

.tableBodyCell {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #e8e8e8;
    height: 120px;
    position: relative;
}

/* 图片列特殊样式 */
.pictureIncorrect {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #e8e8e8;
    height: 120px;
    position: relative;
    text-align: center;
}

/* 规格图片上传容器 */
.specImageUploadContainer {
    margin: 0 auto;
    width: 75px !important;
    height: 75px !important;
    border: 1px dashed #bfbfbf;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

/* 表格操作按钮组布局 */
.operationBtnLayout {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 4px 0;
}

/* ================================= 错误提示样式 ================================= */
/* 全局错误提示基础样式 */
:global(.ant-form-item-explain) {
    font-size: 12px;
    line-height: 1.4;
    color: #ff4d4f;
    margin-top: 4px;
    min-height: 20px;
}

/* 表格内错误提示特殊处理 */
.batchTable :global(.ant-form-item-explain) {
    position: absolute;
    left: 0;
    right: 0;
    line-height: 0.8;
}

/* 表格内表单项无底部间距 */
.batchTable :global(.ant-form-item) {
    margin-bottom: 0 !important;
}

/* 表格行最小高度（容纳错误提示） */
.batchTable tr {
    position: relative;
    min-height: 140px;
}

/* 规格图片上传容器错误提示 */
.specImageUploadContainer :global(.ant-form-item-explain) {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
}

/* 规格名称输入框错误提示 */
.specNameGrid :global(.ant-form-item-explain) {
    position: absolute;
    left: 0;
    right: 0;
    line-height: 0.8;
}

/* ================================= 其他辅助样式 ================================= */
.imageUploadWrapper {
    position: relative;
    margin-bottom: 20px;
}

.photoGraph {
    position: relative;
    /* 关键：作为错误提示的绝对定位父容器 */
}

/* 统一所有图片上传容器的错误提示样式（基础信息 + 多规格） */
.photoGraph :global(.ant-form-item-explain) {
    position: absolute;
    top: 70%;
    left: 0;
    right: 0;
}